<extend name="Layout/application"/>

<block name="content">
    <div class="row">
        <div class="col-md-12">

            <div class="row">
                <div class="col-md-8">
                    <div class="page-header">
                        <h1>系统首页</h1>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-10">
                    <div class="panel panel-default">
                        <div class="panel-heading">系统信息</div>

                        <div class="panel-body">

                            <div class="panel-body">

                                <!-- Nav tabs -->
                                <ul class="nav nav-tabs" role="tablist">
                                    <li role="presentation" class="active"><a href="#home" role="tab"
                                                                              data-toggle="tab">添加栏目</a></li>
                                    <li role="presentation"><a href="#profile" role="tab" data-toggle="tab">栏目内容</a></li>
                                </ul>

                                <form class="form-horizontal" role="form">

                                    <!-- Tab panes -->
                                    <div class="tab-content">
                                        <div role="tabpanel" class="tab-pane fade in active" id="home">
                                            <div class="form-group">
                                                <label for="inputEmail3" class="col-sm-2 control-label">所属栏目</label>
                                                <div class="col-sm-10">
                                                    <select type="email" class="form-control" id="inputEmail3"
                                                            placeholder="Email">
                                                        <option>新闻</option>
                                                        <option>天气</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="1" class="col-sm-2 control-label">标题</label>
                                                <div class="col-sm-3">
                                                    <input type="text" class="form-control" id="1"
                                                           placeholder="文章标题">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="2" class="col-sm-2 control-label">标题颜色</label>
                                                <div class="col-sm-3">
                                                    <input type="text" class="form-control" id="2"
                                                           placeholder="标题颜色">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="2" class="col-sm-2 control-label">发布日期</label>
                                                <div class="col-sm-3">
                                                    <input type="text" class="form-control" id="13"
                                                           placeholder="发布日期">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="2" class="col-sm-2 control-label">摘要</label>
                                                <div class="col-sm-3">
                                                    <input type="text" class="form-control" id="13"
                                                           placeholder="发布日期">
                                                </div>
                                            </div>


                                        </div>
                                        <div role="tabpanel" class="tab-pane fade" id="profile">
                                            <textarea class="form-control" name="content"></textarea>
                                        </div>

                                    </div>


                                    <div class="form-group col-sm-2">
                                        <a href="{{:U('create_content')}}">
                                            <button type="button" class="btn btn-primary">添加</button>
                                        </a>
                                        <a href="{{:U('create_content')}}">
                                            <button type="button" class="btn btn-primary">返回</button>
                                        </a>
                                    </div>
                                </form>


                            </div>
                        </div>
                    </div>
                </div>


                <div class="col-md-2">
                    <div class="list-group">
                        <a href="javascript: void 0;" class="list-group-item list-group-item-info sort_category">
                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 新增 (add)
                        </a>

                        <a href="javascript: void 0;" class="list-group-item list-group-item-info sort_category">
                            <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> 排序 (sort)
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>


<block name="js">
    <script src="__PUBLIC__/ckeditor/ckeditor.js"></script>
    <script src="__PUBLIC__/ckfinder/ckfinder.js"></script>

    <script>
        CKEDITOR.replace('content', {
            filebrowserBrowseUrl: '__PUBLIC__/ckfinder/ckfinder.html',
            filebrowserImageBrowseUrl: '__PUBLIC__/ckfinder/ckfinder.html?type=Images',
            filebrowserFlashBrowseUrl: '__PUBLIC__/ckfinder/ckfinder.html?type=Flash',
            filebrowserUploadUrl: '__PUBLIC__/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
            filebrowserImageUploadUrl: '__PUBLIC__/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
            filebrowserFlashUploadUrl: '__PUBLIC__/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
        });
    </script>
</block>